from ultralytics.models.yolo.obb import OBBTrainer

args = dict(model='yolov8s-obb.pt', data='SAR.yaml', epochs=100,batch=32,imgsz=1024,workers=16)
trainer = OBBTrainer(overrides=args)
trainer.train()